package com.hut.oa.service;

import javax.transaction.Transactional;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.hut.oa.model.bean.User;
import com.hut.oa.model.dao.mail.MailDao;

@Service
@Transactional
public class EmailService {

	@Autowired
	MailDao dao;
	
	public int updatestar(Long id,Integer emstar){
		
		return dao.updatesetstar(id, emstar);	
	}
		
	//修改删除状态
	public int deleteid(Long id){	
		return dao.deleteid(id);
	}
	//删除记录
	public  int puredelte(Long id){
		return dao.puredelete(id);
	}
	//修改已读
	public  int isread(Long id){
		return dao.isread(id);
	}
}
